from django.urls import path, re_path
from . import views


urlpatterns = [
    # 图形验证码
    # 1 在网上抄过来的uuid正则表达式提取路径中的uuid
    # re_path(r'^image_codes/(?P<uuid>[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12})/$', views.ImageCodeView.as_view()),

    # 2 使用uuid转换器提取路径uuid值cd，获取图形验证码
    path('image_codes/<uuid:uuid>/', views.ImageCodeView.as_view()),

    # 3 获取短信验证码
    path('sms_codes/<mobile:mobile>/', views.SMSCodeView.as_view()),

]